Reindent.
authorRichard Hult <richard@imendio.com>
Wed, 19 Jul 2006 18:55:27 +0000 (18:55 +0000)
committerRichard Hult <rhult@src.gnome.org>
Wed, 19 Jul 2006 18:55:27 +0000 (18:55 +0000)
2006-07-19  Richard Hult  <richard@imendio.com>

* gtk/gtkdnd-quartz.c (register_types): Reindent.

* gtk/gtkclipboard-quartz.c (gtk_clipboard_set_contents): Add
autorelease pool.

ChangeLog
ChangeLog.pre-2-10
gtk/gtkclipboard-quartz.c
gtk/gtkdnd-quartz.c

index 5fab3c2690282d165a43fb568db0367ebc2b6938..f79157112ebefc8526eedae3d78e1d6afc097683 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2006-07-19  Richard Hult  <richard@imendio.com>
+
+       * gtk/gtkdnd-quartz.c (register_types): Reindent.
+       
+       * gtk/gtkclipboard-quartz.c (gtk_clipboard_set_contents): Add
+       autorelease pool.
+
 2006-07-19  Richard Hult  <richard@imendio.com>
 
        * gdk/quartz/GdkQuartzWindow.c
index 5fab3c2690282d165a43fb568db0367ebc2b6938..f79157112ebefc8526eedae3d78e1d6afc097683 100644 (file)
@@ -1,3 +1,10 @@
+2006-07-19  Richard Hult  <richard@imendio.com>
+
+       * gtk/gtkdnd-quartz.c (register_types): Reindent.
+       
+       * gtk/gtkclipboard-quartz.c (gtk_clipboard_set_contents): Add
+       autorelease pool.
+
 2006-07-19  Richard Hult  <richard@imendio.com>
 
        * gdk/quartz/GdkQuartzWindow.c
index b7ebea8864303efc9a84de6d8f0f9566f16948b4..ba87b429739f2e84a75c4758a9da414d5e5981b0 100644 (file)
@@ -371,8 +371,12 @@ gtk_clipboard_set_contents (GtkClipboard         *clipboard,
 {
   GtkClipboardOwner *owner;
   NSArray *types;
+  NSAutoreleasePool *pool;
+
+  pool = [[NSAutoreleasePool alloc] init];
 
   owner = [[GtkClipboardOwner alloc] initWithClipboard:clipboard];
+
   types = _gtk_quartz_target_entries_to_pasteboard_types (targets, n_targets);
 
   clipboard->user_data = user_data;
@@ -384,6 +388,8 @@ gtk_clipboard_set_contents (GtkClipboard         *clipboard,
 
   [clipboard->pasteboard declareTypes:types owner:owner];
 
+  [pool release];
+
   return true;
 }
 
index ec44ef64e17de771d8fa00f6c0926fe6c7f6fb4c..811b48b183738a7d7785bcae69aa4756ebca1f0f 100644 (file)
@@ -417,7 +417,7 @@ register_types (GtkWidget *widget, GtkDragDestSite *site)
       if (!nswindow)
        return;
 
-      pool= [[NSAutoreleasePool alloc] init];
+      pool = [[NSAutoreleasePool alloc] init];
       types = _gtk_quartz_target_list_to_pasteboard_types (site->target_list);
 
       [nswindow registerForDraggedTypes:types];